/*** STATS CITED -- MOBILITY SAMPLE ***/

clear all
set more 1

do "paths.do"

capture log close
log using "$LOGFILES\track_mob_5.log", replace

/************************************************************
EPSILON
summary stats for tracking exposure for all cohorts
also, correlation between elementary and middle tracking exposure
*************************************************************/

use "$WORKING/track_mob_D.dta", clear

tabstat trk_unadj_elem_cy_nm trk_rel_elem_cy_nm trk_unadj_mid_cy_nm trk_rel_mid_cy_nm [weight=obs], statistics(mean sd)

use "$WORKING/track_mob_D.dta", clear

cor trk_*_cy_dm

/************************************************************
ZETA
High-tracking students on average are exposed to larger class
sizes, with average class sizes of XX (XX) for students
exposed to higher (lower) levels of tracking.
*************************************************************/

use "$WORKING/track_mob_3-figs_2_hilo.dta", clear

tabstat clssz_*_hi if (split_var == "trk_unadj_cy_dm") [weight=obs_hi], statistics(mean sd)
tabstat clssz_*_lo if (split_var == "trk_unadj_cy_dm") [weight=obs_lo], statistics(mean sd)
tabstat clssz_*_hi if (split_var == "trk_rel_cy_dm") [weight=obs_hi], statistics(mean sd)
tabstat clssz_*_lo if (split_var == "trk_rel_cy_dm") [weight=obs_lo], statistics(mean sd)


log close

	
	
	